package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpiggy
 * @since 2025-05-10
 */
@Data
@TableName("auth_allot_teacher_school")
@ApiModel(value = "AuthAllotTeacherSchool对象", description = "")
public class AuthAllotTeacherSchool implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("教师权限id")
    private Long authTeacherId;

    @ApiModelProperty("学校id，多个逗号隔开")
    private String schoolIds;

    @ApiModelProperty("年级id,多个逗号隔开")
    private String yearClassIds;

    @ApiModelProperty("科目id，多个逗号隔开")
    private String subjectsIds;

    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("学校名")
    @TableField(exist = false)
    private String schoolName;


}
